<?php
/**
 * fly
 * Copyright By 5920Team (http://www.5920.me)
 * User: yu@5920.me
 * Date: 13-9-26
 * Time: 上午11:24
 */
/** define fly path */
define('FLY_PATH', dirname(__FILE__));

/** fly Config File */

require FLY_PATH . '/config.php';
require FLY_PATH . '/Autoloader.php';
require FLY_PATH . '/Cache.php';
require FLY_PATH . '/Router.php';

/**
 * Class fly
 */
class Fly
{
    public static $config;

    public static function run()
    {
        self::$config = $GLOBALS['fly'];
        /** autoloader run */
        Autoloader::run(self::$config['autoloader']);
        /** route module-action distribution */
        Router::run(self::$config['router']);
    }
}